|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgalcommand.io.Schedule
public class Schedule
| Field Summary | |
|---|---|
static java.lang.String[] |
CELL_DELIMITERS
String that separate cells within a row, should be whitesace characters different from ROW_DELIMITERS |
static java.lang.String[] |
COMMENT_FLAGS
Comments start with these |
static java.lang.String[] |
ROW_DELIMITERS
Line terminators that signify the end of a row. |
static int |
TIME_COLUMN
The column parsed as time data |
| Constructor Summary | |
|---|---|
Schedule()
Default constructor |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getVariableTitles()
|
int |
indexOf(java.lang.String variable_name)
|
double |
interpolate(int variable)
Using the time from the most recent updateTime(SimpleTime),
this method interpolates the given column (see indexOf(String))
to create a value between earlier and later time points. |
static void |
main(java.lang.String[] args)
|
void |
parseFile(java.io.File f)
Reads a file as a table of numeric data with a title row on the top |
void |
updateTime(SimpleTime newtime)
Updates the internal time keeping of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] ROW_DELIMITERS
public static final java.lang.String[] CELL_DELIMITERS
ROW_DELIMITERS
public static final java.lang.String[] COMMENT_FLAGS
public static final int TIME_COLUMN
| Constructor Detail |
|---|
public Schedule()
| Method Detail |
|---|
public void parseFile(java.io.File f)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.NumberFormatException
f -
java.io.FileNotFoundException
java.io.IOException
java.lang.NumberFormatExceptionpublic int indexOf(java.lang.String variable_name)
variable_name -
public java.util.List<java.lang.String> getVariableTitles()
public static void main(java.lang.String[] args)
public double interpolate(int variable)
updateTime(SimpleTime),
this method interpolates the given column (see indexOf(String))
to create a value between earlier and later time points. Cubic
interpolation is used.
variable -
public void updateTime(SimpleTime newtime)
interpolate(int)
newtime -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||